<template>
  <el-dialog
    title="日志详情"
    :visible.sync="dialogVisible"
    width="40%"
    :before-close="handleClose"
  >
    <el-input type="textarea" :rows="10" v-model="errorMsg" readonly="true"/>
    <span slot="footer" class="dialog-footer">
      <el-button @click="handleClose">取 消</el-button>
    </span>
  </el-dialog>
</template>

<script>
export default {
  name: 'LogDetails',
  data() {
    return {
      dialogVisible: false,
      errorMsg: ''
    }
  },
  methods: {
    handleClose() {
      this.dialogVisible = false
      this.$nextTick(() => {
        this.$parent.LogDetailsVisible = false
      })
    }
  }
}
</script>

<style scoped>

</style>
